﻿using System;
using System.Collections.Generic;
using System.Globalization;
using System.Windows.Forms;

namespace XDesigner.Development
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            foreach (string arg in System.Environment.GetCommandLineArgs())
            {
                if (arg.StartsWith("lan=", StringComparison.CurrentCultureIgnoreCase))
                {
                    // set language
                    string lang = arg.Substring(4).Trim();
                    CultureInfo cul = new CultureInfo(lang);
                    System.Threading.Thread.CurrentThread.CurrentUICulture = cul;
                }
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            //Application.Run(new Test.frmRemoveComment());
            Application.Run(new Controls.frmSolutionBrowser());
            Properties.Settings.Default.Save();
        }
    }
}
